package com.ly.mpayment.persist.entity;


import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;

@Entity
@Table(name = "card_order")
public class CardOrder {

    private String id;
    private String operatorname;
    private String name;
    private String cardNum;
    private String passwd;
    private Date expireTime;
    private String upName;
    private BigDecimal upDiscount;
    private String downName;
    private BigDecimal downDiscount;
    private Date createTime;
    private BigDecimal faceValue;
    private int status;
    private String imName;
    private String exName;
    private Date exTime;

    @Id
    @GeneratedValue(generator = "uuid")
    @GenericGenerator(name = "uuid", strategy = "uuid")
    @Column(name="id", unique=true, nullable=false, length=36)
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Column(name="operatorname")
    public String getOperatorname() {
        return operatorname;
    }

    public void setOperatorname(String operatorname) {
        this.operatorname = operatorname;
    }

    @Column(name="name")
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Column(name="card_num")
    public String getCardNum() {
        return cardNum;
    }

    public void setCardNum(String cardNum) {
        this.cardNum = cardNum;
    }

    @Column(name="passwd")
    public String getPasswd() {
        return passwd;
    }

    public void setPasswd(String passwd) {
        this.passwd = passwd;
    }

    @Column(name="expire_time")
    public Date getExpireTime() {
        return expireTime;
    }

    public void setExpireTime(Date expireTime) {
        this.expireTime = expireTime;
    }

    @Column(name="up_name")
    public String getUpName() {
        return upName;
    }

    public void setUpName(String upName) {
        this.upName = upName;
    }

    @Column(name="up_discount")
    public BigDecimal getUpDiscount() {
        return upDiscount;
    }

    public void setUpDiscount(BigDecimal upDiscount) {
        this.upDiscount = upDiscount;
    }

    @Column(name="down_name")
    public String getDownName() {
        return downName;
    }

    public void setDownName(String downName) {
        this.downName = downName;
    }

    @Column(name="down_discount")
    public BigDecimal getDownDiscount() {
        return downDiscount;
    }

    public void setDownDiscount(BigDecimal downDiscount) {
        this.downDiscount = downDiscount;
    }

    @Column(name="create_time")
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Column(name="face_value")
    public BigDecimal getFaceValue() {
        return faceValue;
    }

    public void setFaceValue(BigDecimal faceValue) {
        this.faceValue = faceValue;
    }

    @Column(name="status")
    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    @Column(name="im_name")
    public String getImName() {
        return imName;
    }

    public void setImName(String imName) {
        this.imName = imName;
    }

    @Column(name="ex_name")
    public String getExName() {
        return exName;
    }

    public void setExName(String exName) {
        this.exName = exName;
    }

    @Column(name="ex_time")
    public Date getExTime() {
        return exTime;
    }

    public void setExTime(Date exTime) {
        this.exTime = exTime;
    }
}
